package com.one.api.common.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static final String stanFormat="yyyy-MM-dd HH:mm:ss";
    public static final String stanMilliFormat="yyyy-MM-dd HH:mm:ss.SSS";

    public static final DateFormat stanFormater=new SimpleDateFormat(stanFormat);
    public static final DateFormat stanMilliFormater=new SimpleDateFormat(stanMilliFormat);

    public static String formatStan(Date date){
        return stanFormater.format(date);
    }
    public static String formatStanMilli(Date date){
        return stanMilliFormater.format(date);
    }

}
